package xyz.xtt.exchange.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author huqibo
 *
 */
@Getter
@NoArgsConstructor
public enum AssetClassifyForFirst {
	Certificate("经营证", "01"), Chat("聊天", "07"), Collection("收藏", "05"), Community("社群", "03"), Copyright("版权", "09"),
	Equity("权益", "04"), Explore("探索器", "08"), Ground("地皮", "00"), Metaverse("元宇宙", "06"), SHOP("店铺", "02");

	String name;
	String index;

	public static String getClassifyName(String index) {
		for (AssetClassifyForFirst c : AssetClassifyForFirst.values()) {
			if (c.getIndex().equals(index)) {
				return c.name;
			}
		}
		return null;
	}

	AssetClassifyForFirst(String name, String index) {
		this.name = name;
		this.index = index;
	}
}
